2919a437e72f0ab5053c2072000588f9057011f7,src/test/java/javax/money/convert/DefaultExchangeRate.java,DefaultExchangeRate,equals,#Object#,257
Before Change
*/
@Override
public boolean equals(Object obj){
if(this == obj){
return true;
}
if (Objects.isNull(obj)) {
return false;
}
if(getClass() != obj.getClass()){
return false;
}
DefaultExchangeRate other = (DefaultExchangeRate) obj;
if (Objects.isNull(base)) {
if (Objects.nonNull(other.base)) {
return false;
}
}else if(!base.equals(other.base)){
return false;
}
if(!chain.equals(other.getExchangeRateChain())){
return false;
}
if (Objects.isNull(conversionContext)) {
if (Objects.nonNull(other.conversionContext)) {
return false;
}
}else if(!conversionContext.equals(other.conversionContext)){
return false;
}
if (Objects.isNull(factor)) {
if (Objects.nonNull(other.factor)) {
return false;
}
}else if(!factor.equals(other.factor)){
return false;
}
if (Objects.isNull(term)) {
if (Objects.nonNull(other.term)) {
return false;
}
}else if(!term.equals(other.term)){
return false;
}
return true;
}
/**
After Change
other.conversionContext)
&& Objects.equals(chain, other.chain)
&& Objects.equals(factor, other.factor)
&& Objects.equals(term, other.term);
}
return false;
}